import request from '@/utils/request'

// 查询公告列表
export function listOrganization(query) {
    return request({
        url: '/yanglao/retirementOrganize/list',
        method: 'get',
        params: query
    })
}

// 查询公告详细
export function getOrganization(id) {
    return request({
        url: '/yanglao/retirementOrganize/' + id,
        method: 'get'
    })
}

// 新增公告
export function addOrganization(data) {
    return request({
        url: '/yanglao/retirementOrganize',
        method: 'post',
        data: data
    })
}

// 修改公告
export function updateOrganization(data) {
    return request({
        url: '/yanglao/retirementOrganize',
        method: 'put',
        data: data
    })
}

// 删除公告
export function delOrganization(id) {
    return request({
        url: '/yanglao/retirementOrganize/' + id,
        method: 'delete'
    })
}
